package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 区域对象 sys_area
 * 
 * @author ruoyi
 * @date 2020-12-17
 */
public class SysArea extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 父级id */
    @Excel(name = "父级id")
    private String parentId;

    /** 父级id集合 */
    @Excel(name = "父级id集合")
    private String parentIds;

    /** 名称 */
    @Excel(name = "名称")
    private String simpName;

    /** 名称集合 */
    @Excel(name = "名称集合")
    private String name;

    /** 名称简写 */
    @Excel(name = "名称简写")
    private String shortSimpName;

    /** 名称集合简写 */
    @Excel(name = "名称集合简写")
    private String shortName;

    /** 类型 1国2.省3.市4区 */
    @Excel(name = "类型 1国2.省3.市4区")
    private String type;

    /** 类别 */
    @Excel(name = "类别")
    private String sort;

    /** 城市代码 */
    @Excel(name = "城市代码")
    private String cityCode;

    /** 邮政编码 */
    @Excel(name = "邮政编码")
    private String zipCode;

    /** 拼音 */
    @Excel(name = "拼音")
    private String pinyin;

    /** 简拼 */
    @Excel(name = "简拼")
    private String jianpin;

    /** 首字母 */
    @Excel(name = "首字母")
    private String firstChar;

    /** 经度 */
    @Excel(name = "经度")
    private String lng;

    /** 纬度 */
    @Excel(name = "纬度")
    private String lat;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;
    
    private List<SysArea> areas;

    public List<SysArea> getAreas() {
		return areas;
	}

	public void setAreas(List<SysArea> areas) {
		this.areas = areas;
	}

	public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setParentId(String parentId) 
    {
        this.parentId = parentId;
    }

    public String getParentId() 
    {
        return parentId;
    }
    public void setParentIds(String parentIds) 
    {
        this.parentIds = parentIds;
    }

    public String getParentIds() 
    {
        return parentIds;
    }
    public void setSimpName(String simpName) 
    {
        this.simpName = simpName;
    }

    public String getSimpName() 
    {
        return simpName;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setShortSimpName(String shortSimpName) 
    {
        this.shortSimpName = shortSimpName;
    }

    public String getShortSimpName() 
    {
        return shortSimpName;
    }
    public void setShortName(String shortName) 
    {
        this.shortName = shortName;
    }

    public String getShortName() 
    {
        return shortName;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setSort(String sort) 
    {
        this.sort = sort;
    }

    public String getSort() 
    {
        return sort;
    }
    public void setCityCode(String cityCode) 
    {
        this.cityCode = cityCode;
    }

    public String getCityCode() 
    {
        return cityCode;
    }
    public void setZipCode(String zipCode) 
    {
        this.zipCode = zipCode;
    }

    public String getZipCode() 
    {
        return zipCode;
    }
    public void setPinyin(String pinyin) 
    {
        this.pinyin = pinyin;
    }

    public String getPinyin() 
    {
        return pinyin;
    }
    public void setJianpin(String jianpin) 
    {
        this.jianpin = jianpin;
    }

    public String getJianpin() 
    {
        return jianpin;
    }
    public void setFirstChar(String firstChar) 
    {
        this.firstChar = firstChar;
    }

    public String getFirstChar() 
    {
        return firstChar;
    }
    public void setLng(String lng) 
    {
        this.lng = lng;
    }

    public String getLng() 
    {
        return lng;
    }
    public void setLat(String lat) 
    {
        this.lat = lat;
    }

    public String getLat() 
    {
        return lat;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("parentId", getParentId())
            .append("parentIds", getParentIds())
            .append("simpName", getSimpName())
            .append("name", getName())
            .append("shortSimpName", getShortSimpName())
            .append("shortName", getShortName())
            .append("type", getType())
            .append("sort", getSort())
            .append("cityCode", getCityCode())
            .append("zipCode", getZipCode())
            .append("pinyin", getPinyin())
            .append("jianpin", getJianpin())
            .append("firstChar", getFirstChar())
            .append("lng", getLng())
            .append("lat", getLat())
            .append("remarks", getRemarks())
            .toString();
    }
}
